<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragment :: common_head(~{::meta},~{::title},~{},~{},~{::script})">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>1. 结构赋值</title>
    <script type="text/javascript">
        window.onload = function() {
            console.log("aaa");
            let jsonData = {
                id: 42,
                status: 'ok',
                data: [888, 999]
            };

            let {id, status, data: number} = jsonData;
            console.log(id, status, number);
        };
    </script>
</head>
<body>
<header id="header" th:replace="fragment :: header"></header>
<footer id="footer" th:replace="fragment :: footer"></footer>
</body>
</html>